<template>
    <div class="cal-wrapper">
        <CalenderItem v-bind:key="index" v-for="(i,index) in dat"  :select="new Date().getDay()-1===index" :dt="i"></CalenderItem>
    </div>
</template>

<script>
import {getWeekTime} from "@/utils/utils";
import CalenderItem from "@/components/Calender/CalenderItem";

export default {
    name: "Calender",
    components: {CalenderItem},
    props: ['weekday'],
    data(){
        return{

        }
    },
    computed:{
       dat: function (){
           return getWeekTime();
       }
    },


}
</script>

<style scoped>
.cal-wrapper {
    display: flex;

    background-color: white;
    border-radius: 30px;
    padding-left: -10px;
    padding-right: 0px;
    width: 771px;
    height: 114px;
    align-content: center;
    justify-items: center;
    align-items: center;
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.2);
}
</style>